﻿namespace ESoft.AspNetCore.Login
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface ISessionService<T> where T: IApplicationSession
    {
        T GetLoginUser();

        T GetLoginUser(string sid);

        string InsertOrUpdateSession(T user);

        T Refresh(string sid);
    }
}
